package com.tfj.mvp.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by mac on 2018/12/4.
 */

public class ItemCate implements Serializable {
    private String categoryId;
    private String categoryName;
    private String categoryCover;
    private String spuTotal;
    private List<ItemCate> sons;
    private String ifCheck = "0";

    public ItemCate() {
    }

    public ItemCate(String categoryId, String categoryName, String categoryCover, String spuTotal, List<ItemCate> sons, String ifCheck) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.categoryCover = categoryCover;
        this.spuTotal = spuTotal;
        this.sons = sons;
        this.ifCheck = ifCheck;
    }

    public ItemCate(String categoryId, String categoryName, String categoryCover, String spuTotal, List<ItemCate> sons) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.categoryCover = categoryCover;
        this.spuTotal = spuTotal;
        this.sons = sons;
    }

    public String getIfCheck() {
        return ifCheck;
    }

    public void setIfCheck(String ifCheck) {
        this.ifCheck = ifCheck;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryCover() {
        return categoryCover;
    }

    public void setCategoryCover(String categoryCover) {
        this.categoryCover = categoryCover;
    }

    public String getSpuTotal() {
        return spuTotal;
    }

    public void setSpuTotal(String spuTotal) {
        this.spuTotal = spuTotal;
    }

    public List<ItemCate> getSons() {
        return sons;
    }

    public void setSons(List<ItemCate> sons) {
        this.sons = sons;
    }
    @Override
    public String toString() {
        //重写该方法，作为选择器显示的名称
        return categoryName;
    }
}
